/**
 * 路由配置
 *
 * 推荐使用懒加载的方式来导入组件
 *
 * @example
 *  //普通模式
 *  import Home from '../modules/home/index'
 *  //懒加载模式
 *  const index    = (resolve) => require(['./page/index.vue'],resolve)
 */

const Home = resolve => require(['../modules/home/index'], resolve)
const About = resolve => require(['../modules/about/index'], resolve)

//路由指向
const routes = [
    { path: '/', component: Home },
    { path: '/about', component: About }
];


export default routes